﻿<%@ Page Title="" Language="C#" MasterPageFile="~/FilStartUps.Master" AutoEventWireup="true"
    CodeBehind="ThreadReply.aspx.cs" Inherits="FilStartUps.ThreadReply" %>

<%@ Register Src="Controls/FilStartUps_PageNav.ascx" TagName="FilStartUps_PageNav"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainNav" runat="server">


    <uc1:FilStartUps_PageNav ID="FilStartUps_PageNav1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

        <script type="text/javascript">

            function checkEditorNotEmpty(source, args) {
                var editor = $find("<%=txtreplymessage.ClientID%>");
                var cont = editor.get_text();
                var isValid = cont.length > 0;
                args.IsValid = isValid;
            }
    </script>

      <asp:CustomValidator 
                    CssClass="errorMessage" 
                    ID="HtmlEditorValidator" 
                    runat="server" 
                    ErrorMessage="Release Note cannot be empty"
                    Display="None" 
                    ControlToValidate="txtreplymessage"
                    EnableClientScript="true"
                    ClientValidationFunction ="checkEditorNotEmpty"
                    OnServerValidate="CheckEditorNotEmptyServerSide"
                    ValidateEmptyText="true">
</asp:CustomValidator>  



    <table border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                Topic Title:
            </td>
            <td>
                <asp:Label runat="server" ID="lbtitle"></asp:Label>
            </td>
        </tr>
        <ajaxToolkit:HtmlEditorExtender ID="htmleditor" TargetControlID="txtreplymessage"
            runat="server">
        </ajaxToolkit:HtmlEditorExtender>
        <tr>
            <td>
                Reply:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtreplymessage" Height="303px" Width="457px"></asp:TextBox>
            </td>
        </tr>
          <tr>
            <td colspan="2">
                <asp:Button ID="btnsubmit" runat="server" Text="Reply" 
                    onclick="btnsubmit_Click" />
            </td>
          </tr>
    </table>
    <br />
    <br />
</asp:Content>
